package oceanwiki.req;

import lombok.Data;
import lombok.ToString;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;

/**
 * @FileName PageReq
 * @Description
 * @Author Me
 * @date 2024-09-10
 **/

@Data
@ToString
public class PageReq {
    @NotNull(message = "页码不能为空")
    private int page=1;

    @NotNull(message = "每页条数不能为空")
    @Max(value = 20, message = "每页条数不能超出20")
    private int size=5;
}
